export default {
	carts:(state)=>state.carts.list,
	selectedGoods:state=>state.carts.list.filter(item=>item.goods_checked),
	totalMoney:(state,getters)=>getters.selectedGoods.reduce((sum, item) => {return sum + (item.goods_count * item.goods_price)}, 0),
	totalCount:(state,getters)=>getters.selectedGoods.reduce((sum, item) => {return sum + item.goods_count }, 0)
	}